<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="frm" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="/style.css" type=text/css rel=stylesheet>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>로그인</title>
<script type="text/javascript">
<!--
function useId() {
	opener.form.loginId.value = document.form.loginId.value;
	opener.form.checkid.value = 0;
	self.close();
}
function checkId() {
	document.form.submit();
} 
//-->
</script>
</head>
<body>
<center>
<h1>아이디 중복 체크</h1>
<form name="form" method="post" enctype="UTF-8"
	action="/cont/checkLoginId.htm"><input type="hidden" name="mode"
	value="${mode}" />
<table border="1">
	<tr align="center">
		<td>아이디 :</td>
		<td><input type="text" name="loginId" value="${loginId }">
		</td>
	</tr>
	<tr align="center">
		<c:if test="${not empty logInfo }">
			<td colspan="2">
				${loginId }는 사용할 수 없습니다. <br>
				<input type="button" value="Check ID" onclick="javascript:checkId();" />
			</td>
		</c:if>
		<c:if test="${empty logInfo }">
			<td colspan="2">
				${loginId }는 사용할 수 있습니다. <br>
				<input type="button" value="Use this ID" onclick="javascript:useId();" />
				<input type="button" value="Check ID" onclick="javascript:checkId();" />
			</td>
		</c:if>

	</tr>
</table>
</form>
</body>
</html>